<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
        "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta charset="UTF-8">
    <title>转义</title>
    <script type="text/javascript" src="../static/template.js"></script>
</head>
<body>
<h1>不转义HTML</h1>
<div id="content"></div>
<script type="text/html" id="test">
<p>不转义：{{#value}}</p>
<p>默认转义：{{value}}</p>
</script>
<script type="text/javascript">
    var data = {
        value:'<span style="color: green">hello world</span>'
    };
    var html = template('test',data);
    document.getElementById('content').innerHTML = html;
</script>
</body>
</html>